<template>
  <div>
    <div>login</div>
    <button @click="login">get login msg</button>
  </div>
</template>

<script>
import { login } from '@/api/base';

export default {
  methods: {
    async login() {
      const res = await login();
      console.log('res', res);
    },
  },
};
</script>
